<%= render :partial => 'shared/cms_left_bar', :locals => { :on => 1 } -%>

<div id="main">
  <%= render :partial => 'shared/menu_bar', :locals => { :new_entry_link => new_recommend_subject_path } -%>
  <%= render :partial => 'form' -%>
  
  <div class="box mb10">
    <table class="table border" id="product_list">
      <caption><%= @recommend_subject.title %> 主题</caption>
      <thead>
        <tr>
        <th width="38">#</th>
        <th width="38">排序</th>
        <th width="38">编号</th>
        <th>名称</th>
        </tr>
      </thead>
      <tbody>
        <% @recommend_subject.item_recommends.each do |recommend| -%>
          <tr class="<%= cycle('', 'tr2') %>">
          <td><a href="#" class="delete" rel="<%= recommend.id %>">X</a></td>
          <td><%= recommend.position %></td>
          <td><%= recommend.recommendable_id %></td>
          <td><%= recommend.name %></td>
          </tr>
        <% end -%>
      </tbody>
    </table>
  </div>
</div>

<%= javascript_include_tag 'base' -%>
